package com.question.view.command.play;

import com.question.Design.SingletonMode;
import com.question.entity.User;
import com.question.service.IPlayerService;
import com.question.utils.InputOutUtils;
import com.question.view.Application;
import com.question.view.Configure;

public class InfoCommand extends PlayerSuper{
	private IPlayerService playerService = SingletonMode.getPlayerService();
	@Override
	protected void exec(User player) {
		Application.setUser(playerService.updatePlayer(player));
		InputOutUtils.print("**********************",
							"昵称:"+player.getDisplay_name(),
							Configure.INTEGRAL+":"+player.getScore(),
							"回答的题数:"+player.getAnswer(),
							"提问的次数:"+player.getAsk_question(),
							"**********************");
	}

}
